home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 1.9 KB | 89 lines | [TEXT/MPS ] |
- ;
- ; File: ShutDown.a
- ;
- ; Contains: Shutdown Manager Interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__SHUTDOWN__') = 'UNDEFINED' THEN
- __SHUTDOWN__ SET 1
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
- include 'MixedMode.a'
- ENDIF
- IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
-
- sdOnPowerOff EQU 1 ;call procedure before power off.
- sdOnRestart EQU 2 ;call procedure before restart.
- sdOnUnmount EQU 4 ;call procedure before unmounting.
- sdOnDrivers EQU 8 ;call procedure before closing drivers.
- sdRestartOrPower EQU 3 ;call before either power off or restart.
- ;
- ; pascal void ShutDwnPower(void )
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnPower
- move.w #$0001,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnPower
- ENDIF
-
- ;
- ; pascal void ShutDwnStart(void )
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnStart
- move.w #$0002,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnStart
- ENDIF
-
- ;
- ; pascal void ShutDwnInstall(ShutDwnUPP shutDownProc, short flags)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnInstall
- move.w #$0003,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnInstall
- ENDIF
-
- ;
- ; pascal void ShutDwnRemove(ShutDwnUPP shutDownProc)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnRemove
- move.w #$0004,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnRemove
- ENDIF
-
- ENDIF
- ENDIF ; __SHUTDOWN__
-
-